<?php

namespace common\models\cms;

use Yii;

/**
 * This is the model class for table "{{%cms_article_tag}}".
 *
 * @property int $id
 * @property int $article_id 文章ID
 * @property int $tag_id 标签ID
 */
class CmsArticleTag extends \common\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%cms_article_tag}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['article_id', 'tag_id'], 'integer'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'article_id' => '文章ID',
            'tag_id' => '标签ID',
        ];
    }

}
